//
// This script illustrates the usage of scriptedObjects. 
// The selector object is a java object which is provided to the script at launch time. 
// Scripted objects are defined as contributions to the script in the plugin.xml file
//

s = selector.selectFile();
if ( s ) {
	f = new java.io.File(s);
	com.onjava.util.Logger.log("You have selected this file: " + s);
	com.onjava.util.Logger.log("The partition it belongs to has " + (f.freeSpace / (1024*1024)) + " free Mbs ");
}
else {
	com.onjava.util.Logger.log("You have canceled the dialog");
}
 


